#include <stdio.h>
typedef unsigned char *bytepointer;

void showbytes(bytepointer start,size_t len)
{
    size_t i;
    for(i=0;i<len;i++)
    printf("%.2x",start[i]);
    printf("\n");
}
void showint(int x)
{
    showbytes((bytepointer)&x,sizeof(int));
}
void showfloat(float x)
{
    showbytes((bytepointer)&x,sizeof(float));
}
void showpointer(void *x)
{
    showbytes((bytepointer)&x,sizeof(void*));
}
main ()
{
  
  int a=5228;
  printf("%12d ",a);
  showint(a);
  printf("\n");
  float b=5228.0;
  printf("%12f ",b);
  showfloat(b);
  
}
